package com.cy.system.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.cy.system.entity.Dept;
import com.cy.system.entity.Menu;
import com.cy.system.service.DeptService;
import com.cy.system.service.MenuService;

@Controller
public class DeptController {
	@Resource
	DeptService deptService;
	
	@RequestMapping("/allDept")
	@ResponseBody
	public List<Dept> getAllDept(){
		return deptService.getAllDept();
	}
}
